// 引入swiper样式
import 'swiper/swiper-bundle.min.css';
// 引入slider组件样式
import './slider.css';

import Swiper from 'swiper/swiper-bundle.min';
import config,{SWIPER_CONTAINER_CLASS,URL,indexSlider} from './config'
import render from './slider.art';
import {getData} from 'api/getData';

getData(URL).then(data=>{
    indexSlider.innerHTML=render({imgs:data})
    new Swiper(SWIPER_CONTAINER_CLASS,config) ;
})